package com.dfs.parent.common.feign.context;

import cn.hutool.core.collection.CollUtil;

/**
 * @Description 灰度版本工具类，支持父子线程传递参数
 * @Author dahong
 * @Date 2024/2/22 05:09
 */
public class GrayContextHolder {
    private static final ThreadLocal<String> GRAY_TAG = new ThreadLocal<>();

    public static void setGrayTag(final String tag) {
        GRAY_TAG.set(tag);
    }

    public static String getGrayTag() {
        return GRAY_TAG.get();
    }

    public static void remove() {
        GRAY_TAG.remove();
    }
}
